Current File : //usr/lib/python3/dist-packages/twisted/python/test/__pycache__/test_deprecate.cpython-312.pyc |
�
Ϫ�fd� � �d � d Z ddlZddlZddlZddlZddlmZ ddlmZmZ ddl m
Z
ddlm
Z
ddlmZ ddlmZmZmZmZmZmZmZmZmZmZmZmZ dd lmZ dd
l m!Z! ddl"m#Z# ddl$m%Z% dd
l&m'Z' G d� d� Z( G d� de'� Z) G d� de'� Z* G d� de%e'� Z+ G d� de'� Z,d� Z-d� Z. G d� de'� Z/ e e
dddd� � G d � d!� � Z0 G d"� d#� Z1 e e
dd$dd� d%� d/d&�� Z2 G d'� d(e'� Z3 G d)� d*e'� Z4 G d+� d,e'� Z5 G d-� d.e'� Z6y# e$ r dZ
Y ��w xY w)0zI
Tests for Twisted's deprecation framework, L{twisted.python.deprecate}.
� N)�normcase)�catch_warnings�simplefilter)�invalidate_caches)�Version)� deprecate)�DEPRECATION_WARNING_FORMAT�_appendToDocstring�_fullyQualifiedName�_getDeprecationDocstring�_getDeprecationWarningString�_mutuallyExclusiveArguments�_passedArgSpec�_passedSignature�
deprecated�deprecatedKeywordParameter�deprecatedProperty�getDeprecationWarningString)�FilePath)�platform)�deprecatedattributes)�TwistedModulesMixin)�SynchronousTestCasec � � e Zd ZdZd� Zd� Zy)�_MockDeprecatedAttributezq
Mock of L{twisted.python.deprecate._DeprecatedAttribute}.
@ivar value: The value of the attribute.
c � � || _ y �N��value��selfr s �D/usr/lib/python3/dist-packages/twisted/python/test/test_deprecate.py�__init__z!_MockDeprecatedAttribute.__init__8 s � ���
� c � � | j S )z$
Get a known value.
r �r! s r"